fix(select-left): 移除多余的 ToolTip 偏移量#3345
Open
LuLu-ling wants to merge 1 commit into
Open
Conversation
Contributor
审阅者指南(在小型 PR 上默认折叠)审阅者指南此 PR 调整了左侧菜单中多个项目的工具提示行为,改为依赖默认位置偏移,而不是使用自定义的水平/垂直偏移。 左侧菜单项更新后工具提示配置的序列图sequenceDiagram
participant PageSelectLeft
participant ToolTipService
PageSelectLeft->>ToolTipService: SetPlacement(itemCreate, PlacementMode.Right)
PageSelectLeft->>ToolTipService: SetPlacement(itemAdd, PlacementMode.Right)
PageSelectLeft->>ToolTipService: SetPlacement(itemInstall, PlacementMode.Right)
%% Custom SetHorizontalOffset and SetVerticalOffset calls removed; default offsets now apply
文件级更改
可能关联的问题
提示与命令与 Sourcery 交互
自定义你的体验访问你的控制面板 来:
获取帮助Original review guide in EnglishReviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR adjusts the tooltip behavior for several left-side menu items by relying on the default placement offsets instead of custom horizontal/vertical offsets. Sequence diagram for updated tooltip configuration on left menu itemssequenceDiagram
participant PageSelectLeft
participant ToolTipService
PageSelectLeft->>ToolTipService: SetPlacement(itemCreate, PlacementMode.Right)
PageSelectLeft->>ToolTipService: SetPlacement(itemAdd, PlacementMode.Right)
PageSelectLeft->>ToolTipService: SetPlacement(itemInstall, PlacementMode.Right)
%% Custom SetHorizontalOffset and SetVerticalOffset calls removed; default offsets now apply
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
There was a problem hiding this comment.
Hey - 我在这里给出了一些整体性的反馈:
- 由于现在有多个菜单项依赖默认的 tooltip 偏移量,并且都使用相同的
PlacementMode.Right,建议提取一个通用的工具方法或配置来统一控制 tooltip 的定位,这样以后如果需要修改就不用分别更新每一个菜单项了。
给 AI Agent 的提示
Please address the comments from this code review:
## Overall Comments
- 由于现在有多个菜单项依赖默认的 tooltip 偏移量,并且都使用相同的 `PlacementMode.Right`,建议提取一个通用的工具方法或配置来统一控制 tooltip 的定位,这样以后如果需要修改就不用分别更新每一个菜单项了。帮我变得更有用吧!请在每条评论上点 👍 或 👎,我会根据你的反馈改进后续的评审。
Original comment in English
Hey - I've left some high level feedback:
- Since multiple menu items now rely on default tooltip offsets with identical
PlacementMode.Right, consider extracting a shared helper/config for tooltip placement so future changes don’t require updating each item separately.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Since multiple menu items now rely on default tooltip offsets with identical `PlacementMode.Right`, consider extracting a shared helper/config for tooltip placement so future changes don’t require updating each item separately.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by Sourcery
错误修复:
Original summary in English
Summary by Sourcery
Bug Fixes: